NASA - Get Mars Rover Photo
(9 actions, 9 KB)
0 Comment
https://github.com/corincerami/mars-photo-api
1 DataJar > GetValueIntent »
keyPath
:
API Credentials.NASA
2 Dictionary »
{ "api_key": "
[1 Value
as Dictionary.api_key
]
" }
3 ToolboxProForShortcuts > CreateQueryItemIntent »
dictionary
:
[2 Dictionary]
inputType
:
dictionary
4 ToolboxProForShortcuts > BuildURLIntent »
path
:
/mars-photos/api/v1/rovers/curiosity/latest_photos
host
:
api.nasa.gov
queryItems
:
[3 Query Item]
5 Get Contents of URL
[4 URL]
»
ShowHeaders
:
true
6 Get
Random Item
from List
[5 Contents of URL
as Dictionary.latest_photos
]
»
7 Get URLs from
[6 Item from List
as Dictionary.img_src
]
»
8 Stop and Output
[7 URLs]